package com.hd.entity.activiti;

import javax.persistence.*;
import java.util.Date;

/**
 * @Author: hzhh123
 * @Date: 2018/12/12 22:08
 * 部署实体
 */
@Entity
@Table(name = "act_deployment")
public class DeploymentEntity {
    /**
     * 部署ID
     */
    @Id
    @Column(name="_ID")
    private String deploymentId;
    /**
     * 部署名称
     */
    @Column(name="_NAME")
    private String name;
    /**
     * 流程定义ID
     */
    @Column(name="_PROC_DEF_ID")
    private String procDefId;
    /**
     * 流程定义KEY
     */
    @Column(name="_KEY")
    private String key;
    /**
     * XML文件
     */
    @Column(name="_RESOURCE_NAME")
    private String resourceName;
    /**
     * 图片资源
     */
    @Column(name="_DIAGRAM_RESOURCE_NAME")
    private String diagramResourceName;
    /**
     * 版本
     */
    @Column(name="_VERSION")
    private  String version;
    /**
     * 状态
     */
    @Column(name="_STATUS")
    private Integer status=1;//1-显示 0-作废
    @Temporal(TemporalType.TIMESTAMP)
    @Column(name = "create_time")
    private Date createTime;

    public String getDeploymentId() {
        return deploymentId;
    }

    public void setDeploymentId(String deploymentId) {
        this.deploymentId = deploymentId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getProcDefId() {
        return procDefId;
    }

    public void setProcDefId(String procDefId) {
        this.procDefId = procDefId;
    }

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public String getResourceName() {
        return resourceName;
    }

    public void setResourceName(String resourceName) {
        this.resourceName = resourceName;
    }

    public String getDiagramResourceName() {
        return diagramResourceName;
    }

    public void setDiagramResourceName(String diagramResourceName) {
        this.diagramResourceName = diagramResourceName;
    }

    public String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
}
